const mongoose = require('mongoose')
mongoose.connect('mongodb://huxvbo:zEyNxTsAyTXCsetT@47.98.180.78:27017/huxvbo', { useNewUrlParser: true, useUnifiedTopology: true })
const conn = mongoose.connection
conn.on('open', () => {
    console.log('服务器连接成功');
})
conn.on('error', (err) => {
    console.log('服务器连接失败,原因是', err);
})

module.exports = mongoose